<template>
    <div>
        <div class="crumbs">
           <el-breadcrumb separator="/">
                <el-breadcrumb-item><i class="el-icon-rank"></i> 拖拽组件</el-breadcrumb-item>
                <el-breadcrumb-item >拖拽弹框</el-breadcrumb-item>
            </el-breadcrumb>
       </div>
       <div class="container">
           <p>通过指令 v-dialogDrag 使 Dialog 对话框具有可拖拽的功能。</p>
           <br>
           <el-button type="primary" @click="visible=true;">点我弹框</el-button>
       </div>
       <el-dialog v-dialogDrag title="拖拽弹框" center :visible.sync="visible" width="30%"
        >
        <span>我是一个可以拖拽的对话框！</span>
        <span slot="footer" class="dialog-footer">
            <el-button @click="visible = false">取 消</el-button>
            <el-button type="primary" @click="visible = false">确 定</el-button>
        </span>
        </el-dialog>
    </div>
</template>
<script>
export default {
    data(){
        return {
        visible: false
        }
    }
}
</script>
